<!-- $Id: listLinks.html 16 2011-02-10 02:57:39Z nicholasinlove1986@gmail.com $ -->
<include file="Public:pageheader"/>
<script type="text/javascript">
function sortBy(order,sort){
	location.href = "?order="+order+"&sort="+sort;
}
</script>
<form method="post" action="__URL__/sortLinks" name="listForm">
  <div class="list-div" id="listDiv">
    <table cellpadding="3" cellspacing="1">
      <tbody>
        <tr>
          <th><a href="javascript:void(0)" onclick="javascript:sortBy('link_sort','<if condition="$sort eq asc">desc<else/>asc</if>');" title="{$Think.lang.sort}">{$Think.lang.link_sort}</a>
            <if condition="$sort eq asc"><img src="__PUBLIC__/Images/sort_asc.gif"/><else/><img src="__PUBLIC__/Images/sort_desc.gif"/></if></th>
          <th>{$Think.lang.link_name}</th>
          <th>{$Think.lang.link_url}</th>
          <th>{$Think.lang.link_logo}</th>
		  <th>{$Think.lang.link_visible}</th>        
          <th>{$Think.lang.link_addtime}</th>
		  <th>{$Think.lang.handler}</th>
        </tr>
        <volist name="list" id="vo">
          <tr>
        <td style="background-color: rgb(255, 255, 255);" width="9%" align="center"><input type="text" name="key[{$vo.link_id}]" size="3" value="{$vo.link_sort}"/></td>
        <td style="background-color: rgb(255, 255, 255);" align="center" width="13%" class="first-cell">{$vo.link_name}</td>
        <td style="background-color: rgb(255, 255, 255);" align="left" width="25%"><span><a href="{$vo.link_url}" target="_blank">{$vo.link_url}</a></span></td>
        <td style="background-color: rgb(255, 255, 255);" align="left" width="18%"><span>{$vo.link_logo}</span></td>
		<td style="background-color: rgb(255, 255, 255);" align="center" width="9%"><span><eq name='vo.link_visible' value='1'><img src="__PUBLIC__/Images/yes.gif" border="0" height="14" width="14" alt="{$Think.lang.visible}"><else /><img src="__PUBLIC__/Images/no.gif" border="0" height="14" width="14" alt="{$Think.lang.unvisible}"></eq></span></td>
        <td style="background-color: rgb(255, 255, 255);" align="center" width="14%"><span>{$vo.link_addtime|date='Y-m-d H:i:s',###}</span></td>   
		<td style="background-color: rgb(255, 255, 255);" align="center">
	<a href="__APP__/Links/editLinks/id/{$vo.link_id}" title="{$Think.lang.edit}"><img src="__PUBLIC__/Images/icon_edit.gif" border="0" width="16" height="16"></a>&nbsp;&nbsp;
    <a href="__APP__/Links/visibleToggle/id/{$vo.link_id}/v/{$vo.link_visible}" onclick="return confirm('{$Think.lang.confirm}');" ><eq name='vo.link_visible' value='1'><img src="__PUBLIC__/Images/icon_drop.gif" border="0" width="16" height="16" alt="{$Think.lang.unvisible}"><else /><img src="__PUBLIC__/Images/icon_add.gif" border="0" width="16" height="16" alt="{$Think.lang.visible}"></eq></a>&nbsp;&nbsp;
	<a href="__APP__/Links/trashLinks/id/{$vo.link_id}" title="{$Think.lang.trash_}" onclick="return confirm('{$Think.lang.confirm}');" ><img src="__PUBLIC__/Images/icon_trash.gif" border="0" width="16" height="16"></a></td>    
          </tr>
        </volist>
        <tr>
		<td colspan="2"><input value="{$Think.lang.update_sort}" name="btnSubmit" class="button" type="submit" onclick="return confirm('{$Think.lang.confirm_sort}');" ><input type="hidden" name="act" value="do" /></td>
          <td style="background-color: rgb(255, 255, 255);" colspan="5" align="right" nowrap="true"><div class="{$pagestyle}" id="turn-page">{$page}</div></td>
        </tr>
      </tbody>
    </table>
  </div>
</form>
<include file="Public:pagefooter"/> 